package com.advert.model.advert;

import javax.persistence.*;

@Entity
@Table(name = "images")
public class ImageLobsEntity extends ImageBase {
    @Lob
    @Basic(fetch = FetchType.EAGER)
    @Column(name = "image")
    private byte[] image;

    @Lob
    @Basic(fetch = FetchType.EAGER)
    @Column(name = "preview")
    private byte[] preview;

    

    public byte[] getImage() {
        return image;
    }

    public byte[] getPreview() {
        return preview;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }

    public void setPreview(byte[] preview) {
        this.preview = preview;
    }
}
